import request from '@/utils/request'

export function selectCloudBeacon(data) {
  return request({
    url: '/selectCloudBeacon',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

export function getHospitalsId(data) {
  return request({
    url: '/equipment/getHospitalsId',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function queryHospitalsId(data) {
  return request({
    url: '/hospitalId',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function bindDepartment(data) {
  return request({
    url: '/bindDepartment',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

export function delBindDepartment(data) {
  return request({
    url: '/relieveBindDepartment',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function hospitalIdNew(data) {
  return request({
    url: '/deptmanage/hospitalIdNew',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
